package me.hys.kits;

import java.util.List;
import java.util.Map;

/**
 * Author: @author HYS . <br>
 * Date: 2015-7-9 下午10:54:55 . <br>
 * Function: 集合工具类
 */
public class CollectionKit {
	/**
	 * @Title : isNull
	 * @Description :
	 */
	public static boolean containsKey(Map<?, ?> map, String key) {
		return null != map && map.containsKey(key);
	}

	/**
	 * @Title : isNull
	 * @Description : List是否为空
	 */
	public static boolean isNull(List<?> list) {
		return null == list || list.size() == 0;
	}

	/**
	 * @Title : isNull
	 * @Description : Map是否为空
	 */
	public static boolean isNull(Map<?, ?> map) {
		return null == map || map.keySet().size() == 0;
	}
}
